package com.nidu.demo.file.dto;

import com.nidu.demo.base.BaseTenantCO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Map;

/**
 * 文件配置客户端对象
 *
 * @author auto
 */
@Data
@Schema(description = "文件配置客户端对象")
@EqualsAndHashCode(callSuper = true)
public class FileConfigCO extends BaseTenantCO {

    @Schema(description = "主键ID", example = "1")
    private Long id;

    @Schema(description = "配置名", example = "阿里云OSS配置")
    private String name;

    @Schema(description = "存储器类型", example = "2")
    private Integer storage;

    @Schema(description = "存储器类型名称", example = "阿里云OSS")
    private String storageName;

    @Schema(description = "备注", example = "用于存储用户头像")
    private String remark;

    @Schema(description = "是否为主配置", example = "true")
    private Boolean master;

    @Schema(description = "存储配置参数")
    private Map<String, Object> config;
}